package main

import (
	"fmt"
)

const (
	// 普通的全局常量
	// BEIJING   = 1
	// SHANGHAI  = 2
	// GUANGZHOU = 3

	//iota 关键字 代表当前的行数 从0开始每次加1
	BEIJING = iota * 3
	SHANGHAI
	GUANGZHOU
)

func main() {

	fmt.Println("hello go!")

	// const 常量关键字 声明后值不能改变
	const length int = 100
	fmt.Println("length = ", length)

	fmt.Println("BEIJING = ", BEIJING)
	fmt.Println("SHANGHAI = ", SHANGHAI)
	fmt.Println("GUANGZHOU = ", GUANGZHOU)

}
